.dataGrid {
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding-right: 20px;

  li {

    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    line-height: 50px;

    // 数据表格头部
    &.dataGrid_header {

      & > div {
        font-size: 12px;
        font-weight: 700;
        color: #03081a;
      }

      .dataGridCheck {
        width: 4%;
      }

      & > div {
        cursor: pointer;
        display: flex;
        justify-content: flex-start;
        align-items: center;

        span {
          &:nth-of-type(1) {
            margin: 0 4px 0 8px;
          }

          &:nth-of-type(2) {
            position: relative;
            top: 1px;
            display: none;

            line-height: 8px;

            i {
              cursor: pointer;
              color: #d4d7de;
              font-size: 12px;
            }
          }
        }

        &.active {
          span {

            &:nth-of-type(2) {
              flex-direction: column;
              display: flex;
              justify-content: space-between;
              align-items: center;
            }
          }
        }

        &.up {
          span {

            &:nth-of-type(2) {
              i {

                &:nth-of-type(1) {
                  color: #06a7ff;
                }
              }
            }
          }
        }

        &.down {
          span {

            &:nth-of-type(2) {
              i {

                &:nth-of-type(2) {
                  color: #06a7ff;
                }
              }
            }
          }
        }
      }

      .dataGridDesc {
        width: 50%;
      }

      .dataGridUpdateTime {
        width: 23%;
      }

      .dataGridSize {
        width: 23%;
      }

      &:hover {
        cursor: auto;
        background: none;
      }
    }

    // 数据表格主体部分
    &.dataGrid_main {

      .dataGridCheck {
        width: 4%;
      }

      .dataGridDesc {
        margin-left: 4px;
        width: 50%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        .imageBox {
          display: inline-block;
          width: 48px;
          height: 48px;

          img {
            display: block;
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 4px;
          }
        }

        span {
          margin-left: 8px;
          font-size: 12px;
          color: #05082c;
          font-weight: 500;

          &:hover {
            color: @primary-color;
          }
        }

        .inputFilenameBox {
          input {
            width: 180px;
            height: 24px;
            padding-left: 14px;
            border: 1px solid #dcdfe6;
            outline: none;
            color: #333333;
            border-radius: 3px;

            &:hover {
              border: 1px solid #c0c4cc;
            }

            &:focus {
              border: 1px solid #06a7ff;
            }
          }

          i {
            margin-left: 6px;
            line-height: 24px;
            font-size: 12px;
            text-align: center;
            color: #ffffff;
            display: inline-block;
            width: 24px;
            height: 24px;
            background: #06a7ff;
            border-radius: 3px;
          }
        }

      }

      .dataGridUpdateTime {
        width: 23%;

        .dataGridTime {
          display: block;
          font-size: 12px;
          color: #afb3bf;
        }

        .dataGridLink {
          display: none;

          & > a {
            color: @primary-color;
            margin-right: 6px;

            &.icon-more {
              position: relative;

              .miniFileDataMenu {
                display: none;
                position: absolute;
                top: 24px;
                left: 50%;
                transform: translateX(-50%);
                background: #ffffff;
                width: 130px;
                z-index: 777;
                padding: 8px 0;
                border-radius: 6px;
                box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.14) !important;

                & > li {
                  position: relative;
                  cursor: pointer;
                  padding: 0 44px;
                  color: #03081a !important;
                  font-size: 12px;
                  line-height: 30px;
                  display: flex;
                  justify-content: space-between;
                  align-items: center;

                  i {
                    position: absolute;
                    left: 20px;
                  }

                  &:hover {
                    background-color: #f5f6fa;
                  }
                }
              }

              &.active {

                .miniFileDataMenu {
                  display: block;
                }
              }
            }
          }
        }
      }

      .dataGridSize {
        font-size: 12px;
        color: #afb3bf;
        width: 23%;
      }

      &.create_folder {

        .dataGridCheck {

          &:hover {
            cursor: no-drop;
          }
        }
      }

      &.checked {
        background: #fafafc;
        border-color: #fafafc;
      }
    }

    &:hover {
      background: #fafafc;
      border-color: #fafafc;

      &.dataGrid_main {
        .dataGridUpdateTime {
          .dataGridTime {
            display: none;
          }

          .dataGridLink {
            display: block;
          }
        }

        &.create_folder {

          .dataGridUpdateTime {
            .dataGridTime {
              display: block;
            }
          }
        }
      }

    }
  }

  .area {
    width: 100%;
    // 计算高度
    height: ~"calc(100% - 50px)";

    .scrollbar-container {

      width: 8px;

      .scrollbar {
        width: 6px;
        border-radius: 3px;
      }
    }
  }
}

